﻿using SmartProduction.Domain.采购委外订单;

namespace SmartProduction.Read.API.Dto
{
    public class PurchasedetailsQueryDto
    {
        public int Purchaseid { get; set; }
        /// <summary>
        /// 订单编码
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 订单名称
        /// </summary>
        public string OrderName { get; set; }
        /// <summary>
        /// 订单类型(下拉)
        /// </summary>
        public int OrderType { get; set; }
        /// <summary>
        /// 所属项目(下拉)
        /// </summary>
        public int Project { get; set; }
        /// <summary>
        /// 供应商
        /// </summary>
        public string Supplier { get; set; }
        /// <summary>
        /// 签订日期
        /// </summary>
        public DateTime SignDate { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? Maker { get; set; }
        /// <summary>
        /// 制单部门
        /// </summary>
        public int MakerDept { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 审批
        /// </summary>
        public int ApprovalStatus { get; set; }
        /// <summary>
        /// 协议编码
        /// </summary>
        public string? AgreementCode { get; set; }
        /// <summary>
        /// 协议名称
        /// </summary>
        public string? AgreementName { get; set; }
        /// <summary>
        /// 订单备注
        /// </summary>
        public string OrderRemark { get; set; }
        /// <summary>
        /// 订单金额（不含税）
        /// </summary>
        public double OrderAmount { get; set; }
        /// <summary>
        /// 币种
        /// </summary>
        public string Currency { get; set; }
        /// <summary>
        /// 预付款金额
        /// </summary>
        public double AdvancePayment { get; set; }
        /// <summary>
        ///订单开始时间
        /// </summary>
        public DateTime OrderStartDate { get; set; }
        /// <summary>
        /// 订单结束时间
        /// </summary>
        public DateTime OrderEndDate { get; set; }
        /// <summary>
        /// 签订时间
        /// </summary>
        public DateTime SignTime { get; set; }
        /// <summary>
        /// 计税类型(增值税)
        /// </summary>
        public string TaxType { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public int TaxRate { get; set; }
        /// <summary>
        /// 开票金额（含税）
        /// </summary>
        public double InvoiceAmount { get; set; }
        /// <summary>
        /// 已付款金额（含税）
        /// </summary>
        public double PaidAmount { get; set; }




        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public double UnitPrice { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public int Quantity { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public double Amount { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Abstract { get; set; }
        /// <summary>
        /// 信息外键
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 采购编码外键
        /// </summary>
        public string? POrderCode { get; set; }




        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }
    }
}
